import request from '@/utils/request'

export default {
  /**
   * 创二维码
   * @param orderId
   */
  createNative(orderId) {
    return request({
      url: `/api/order/weixin/createNative/${orderId}`,
      method: 'get'
    })
  },
  /**
   * 查询支付状态
   * @param orderId
   */
  queryPayStatus(orderId) {
    return request({
      url: `/api/order/weixin/queryPayStatus/${orderId}`,
      method: 'get'
    })
  },
  /**
   * 取消 订单
   * @param orderId
   */
  cancelOrder(orderId) {
    return request({
      url: `/api/order/orderInfo/auth/cancelOrder/${orderId}`,
      method: 'get'
    })
  }

}
